Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

[AGENT-133] Added “test” command#290

Merged
pec1985 merged 3 commits intomainfrom
AGENT-133
May 14, 2025
Merged

[AGENT-133] Added “test” command#290
pec1985 merged 3 commits intomainfrom
AGENT-133

Conversation

@pec1985
Copy link
Copy Markdown
Contributor

@pec1985 pec1985 commented May 13, 2025

Now we can test our agents like this

agentuity agent test --agent-id <agent_id> --payload '{"key": "value"}'

The agent-id and payload are optional, you will be prompted if ommited.

Comment thread cmd/agent.go Outdated
@pec1985 pec1985 requested a review from jhaynie May 14, 2025 13:55
Comment thread cmd/agent.go Outdated
Comment thread cmd/agent.go Outdated
@pec1985 pec1985 requested a review from jhaynie May 14, 2025 16:07
Comment thread cmd/agent.go
}
if contentType == "" {
// check if payload is json
if json.Valid([]byte(payload)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@pec1985 pec1985 merged commit 7f96b7b into main May 14, 2025
14 checks passed
@pec1985 pec1985 deleted the AGENT-133 branch May 14, 2025 20:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants